include( CMakeFindDependencyMacro )

# Find the copy-on-write dependency
find_dependency( stlab-copy-on-write 1 REQUIRED )

if ( @STLAB_TASK_SYSTEM@ STREQUAL "libdispatch" )
  find_dependency( libdispatch )
endif()

if ( @STLAB_MAIN_EXECUTOR@ STREQUAL "qt5" )
  find_dependency( Qt5 COMPONENTS Core )
elseif ( @STLAB_MAIN_EXECUTOR@ STREQUAL "qt6" )
  find_dependency( Qt6 COMPONENTS Core )
endif()

if ( NOT @STLAB_THREAD_SYSTEM@ STREQUAL "none" )
  find_dependency( Threads )
endif()

include( "${CMAKE_CURRENT_LIST_DIR}/stlabTargets.cmake" )
